package com.vchello.service.entrepren;

import java.util.List;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.vchello.bean.entrepren.ProDelivery;
import com.vchello.bean.entrepren.ProDeliveryMilepost;
import com.vchello.bean.entrepren.ProDeliveryOrganization;

/**
 * 
 * @author power
 *
 */
public interface ProDeliveryService extends IService<ProDelivery>{
	
	Page<ProDelivery> findProDeliveryByPage(Page<ProDelivery> page, ProDelivery proDelivery);

	Integer saveProDelivery(ProDelivery entity);

	Integer updateProDelivery(ProDelivery entity);

	ProDelivery findProDeliveryById(int id);

	ProDelivery findProDeliveryByUserId(int userId);
	
	boolean createDeliveryProject(ProDelivery entity, List<ProDeliveryOrganization> proDeliveryOrganizations, List<ProDeliveryMilepost> proDeliveryMileposts, int userId, int deliveryId);
	
}
